﻿using System;

namespace enyo
{
    public abstract class ContainedDomBuilder : DomNodeBuilder
    {
        public string ClassName { get; set; }

        public ContainedDomBuilder Container { get; set; }

        public ContainedDomBuilder Parent { get; set; }

        public void AddContent(string content, string delim)
        {
        }

        /// <summary>
        /// Return true if the Control is an descendant of then `ancestor` control
        /// Note: a Control is considered a descendant of itself
        /// </summary>
        public bool IsDescendantOf(ContainedDomBuilder ancestor)
        {
            return false;
        }
    }
}
